package com.traffic.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.traffic.dao.VihicleDao;
import com.traffic.domain.Vihicle;
import com.traffic.service.VihicleService;
@Service
public class VihicleServiceImpl implements VihicleService {
	@Resource
    private VihicleDao vihicleDao;
	@Override
	public Vihicle findByVihicleId(Long id) {
		return vihicleDao.getById(id);
	}
	@Override
	public void update(Vihicle vihicle) {
		vihicleDao.update(vihicle);
		
	}

}
